package cn.chinaflame.pagodas.req;

import cn.chinaflame.pagodas.utils.ParamPreconditions;

/**
 * @author created by boming
 * @date 2018年1月17日 下午7:01:19
 */
public class PaInvitationReq extends BaseReq {

    private String memberId;
    private String openid;
    private String mobile;
    private String itemId;
    private String productId;
    private String productAreaId;
    private String productPositionId;
    private String beWishedName;
    private String beWishedSex;
    private String beWishedBirthday;
    private String beWishedMemo;
    private String beWishedMobile;
    private String beWishedAddress;

    @Override
    public void check() {
        // TODO Auto-generated method stub
        super.check();
        ParamPreconditions.checkMemberPrimiaryValid(memberId, beWishedMobile, openid, null);
        ParamPreconditions.checkParamsNotEmpty(itemId, productId, beWishedName, beWishedSex);
        ParamPreconditions.checkSexValid(beWishedSex);
        ParamPreconditions.checkMobileFmt(beWishedMobile);
        //ParamPreconditions.checkBirthdayValid(beWishedBirthday);
    }

    public String getBeWishedAddress() {
        return beWishedAddress;
    }

    public void setBeWishedAddress(String beWishedAddress) {
        this.beWishedAddress = beWishedAddress;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductAreaId() {
        return productAreaId;
    }

    public void setProductAreaId(String productAreaId) {
        this.productAreaId = productAreaId;
    }

    public String getProductPositionId() {
        return productPositionId;
    }

    public void setProductPositionId(String productPositionId) {
        this.productPositionId = productPositionId;
    }

    public String getBeWishedName() {
        return beWishedName;
    }

    public void setBeWishedName(String beWishedName) {
        this.beWishedName = beWishedName;
    }

    public String getBeWishedSex() {
        return beWishedSex;
    }

    public void setBeWishedSex(String beWishedSex) {
        this.beWishedSex = beWishedSex;
    }

    public String getBeWishedBirthday() {
        return beWishedBirthday;
    }

    public void setBeWishedBirthday(String beWishedBirthday) {
        this.beWishedBirthday = beWishedBirthday;
    }

    public String getBeWishedMemo() {
        return beWishedMemo;
    }

    public void setBeWishedMemo(String beWishedMemo) {
        this.beWishedMemo = beWishedMemo;
    }

    public String getBeWishedMobile() {
        return beWishedMobile;
    }

    public void setBeWishedMobile(String beWishedMobile) {
        this.beWishedMobile = beWishedMobile;
    }


}
